﻿using Grow.Domain.Object;

namespace Grow.Domain.EventBus.Cap.PublisherDomainEvents
{
    /// <summary>
    /// 定义枚举
    /// </summary>
    public class PublisherDomainEventStatus : EnumerationBase
    {
        public static PublisherDomainEventStatus Fail = new("1", nameof(Fail).ToLowerInvariant());
        public static PublisherDomainEventStatus Success = new("2", nameof(Success).ToLowerInvariant());
        public static PublisherDomainEventStatus Wait = new("3", nameof(Wait).ToLowerInvariant());

        public PublisherDomainEventStatus(string id, string name)
            : base(id, name)
        {
        }
    }
}
